import random
from urllib.request import urlopen

from datetime import date,datetime

# print(random.choice(['apple','pear','banana']))
#
# print(random.sample(range(100),10)) #sampling without replacement
#
# print(random.random())
#
# print(random.randrange(10))

# for line in urlopen('http://www.baidu.com/'):
#     line = line.decode('utf-8')
#  #   if 'EST' in line or 'EDT' in line:
#     print(line)

now = date.today()
print(now.strftime("%Y-%m-%d %H:%M"))

nowTime = datetime.now()
print(nowTime.strftime("%Y-%m-%d %H:%M"))